package com.jt.www.admin.market.service;

import com.github.pagehelper.PageInfo;
import com.jt.www.domain.bo.MarketerDetailBO;
import com.jt.www.domain.po.MarketerInfoEntity;
import com.jt.www.domain.qo.MarketerInfoQO;
import com.jt.www.domain.qo.MarketerUpdQO;
import com.jt.www.model.reps.GenericDataResponse;
import org.springframework.http.ResponseEntity;

import java.util.List;

public interface MarketerInfoService {

    ResponseEntity queryMarketerById(String findCode, String id);

    ResponseEntity updateMarketer(String findCode, MarketerUpdQO marketerUpdQO);

    List<MarketerInfoEntity> queryMarketersBy(String findCode, String roleCode);

    PageInfo<MarketerInfoEntity> queryMarketers(String findCode, MarketerInfoQO marketerInfoQO, boolean validationPermissions);

    List<MarketerInfoEntity> queryMarketerList(String findCode, MarketerInfoQO marketerInfoQO, boolean validationPermissions);

    List<MarketerInfoEntity> exportMarketers(String findCode, MarketerInfoQO marketerInfoQO);

    void marketerEffect();

    /**
     * 查询营销员详情(带佣金配置相关信息)
     *
     * @param marketerNo
     * @return
     */
    ResponseEntity<GenericDataResponse<MarketerDetailBO>> queryMarketerDetails(String marketerNo);
}
